<include file="public@header"/>

</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>{$name} / 施工员</a></li>
        <li><a href="{:url('add',array('type'=>1,'id'=>$id))}">施工日志新增</a></li>
        <li><a href="{:url('add',array('type'=>2,'id'=>$id))}">内部员工点工新增</a></li>
        <li><a href="{:url('add',array('type'=>3,'id'=>$id))}">外请员工点工新增</a></li>
        <li><a href="{:url('add',array('type'=>4,'id'=>$id))}">甲供材申请单</a></li>
        <li><a href="{:url('add',array('type'=>5,'id'=>$id))}">公司材料申请单</a></li>
    </ul>


    <form method="post" class="js-ajax-form margin-top-20">

        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th>施工日志</th>
                <th>{:lang('ACTIONS')}</th>
            </tr>
            </thead>
            <tbody>
                <volist name="res" id="v">
                    <tr>
                        <td>
                            <?php
                            if($v['type'] == 1){
                            echo '施工日志';
                            }elseif($v['type'] == 2){
                            echo '内部员工点工';
                            }elseif($v['type'] == 3){
                            echo '外请员工点工';
                            }elseif($v['type'] == 4){
                            echo '甲供材申请单';
                            }elseif($v['type'] == 5){
                            echo '公司材料申请单';
                            }?>


                        </td>
                        <td>
                            <?php if($v['type'] ==1 || $v['type'] ==2 || $v['type'] == 3){ ?>
                            <a class="btn btn-xs btn-primary js-ajax-submit"
                               href="{:url('see',array('eid'=>$v['eid'],'type'=>$v['type']))}">查看详情</a>
                            <?php }else{?>
                            <a class="btn btn-xs btn-primary js-ajax-submit"
                               href="{:url('loks',array('eid'=>$v['eid'],'type'=>$v['type']))}">查看详情</a>
                            <?php }?>
                        </td>
                    </tr>

                </volist>

            </tbody>
        </table>

    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>